//取消订单按钮判断
function cancelOrderBtn(item) {
	if (item.order_state == 3 || item.order_state == 2) {
		return false
	} else if (item.pay_state == 0 || item.last_pay_state == 0) {
		return true
	}
	return false
}
//支付按钮判断
function payOrderBtn(item) {
	if (item.order_state == 3 || item.order_state == 2) {
		return false
	} else if (item.pay_state == 0 || item.last_pay_state == 0) {
		return true
	}
	return false
}
//装修日志按钮判断
function logOrderBtn(item) {
	if (item.order_state == 3 || item.order_state == 2) {
		return false
	} else if (item.order_state == 1 && item.allot_state == 1) {
		return true
	}
	return false
}
module.exports = {
	cancelOrderBtn,
	payOrderBtn,
	logOrderBtn
}